# -*- coding: utf-8 -*-

"""
@author: 司徒
@Created on: 20210827
@Remark: cmdb办公设备
"""
from rest_framework import routers
from ops.cmdb.views.desktop import DesktopViewSet
from ops.cmdb.views.servers import ServersViewSet
from django.urls import path

system_url = routers.SimpleRouter()
system_url.register(r'assets/desktop', DesktopViewSet)
system_url.register(r'assets/servers', ServersViewSet)

urlpatterns = [
    path('assets/desktop/export/', DesktopViewSet.as_view({'post': 'export_data'})),
]
urlpatterns += system_url.urls
